package models

import "gorm.io/gorm"

type Doctor struct {
	gorm.Model
	Mobile   string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(32)"`
}

func (d *Doctor) LoginDoctor(db *gorm.DB) error {
	return db.Debug().Find(d).Error
}
